[//I CAN HAS LASSO?

	var('path_to_node' = (xs_cat->getURLpath(-id=$pageID, -cattable='Pages')));
]<div class="instructions"><p>You are assigning a sponsor to the page called &ldquo;<strong>[$page_name]</strong> &rdquo;, which is viewable at the path: <a href="[$path_to_node]">[$path_to_node]</a></p></div>

	<form action="/Admin/Assign_Sponsor_to_Page/Do/" method="post">
		<input name="pageID" id="page" type="hidden" value="[$pageID]">
		<input name="page_url" id="page_url" type="hidden" value="[$path_to_node]">
		
		[
		
		
			var: 'size' = 1;
			
			Inline:
				$connection_db,
				-sql='SELECT UID, Title FROM Gold_Club_Members WHERE Display_Status = "Show"',
				-Table='Gold_Club_Members',
				-inlinename='sponsorships'
				;
					//found_count;
			/Inline;
			
			
					'<select name="sponsor">';
							'<option ';
								'label="(please choose one)" ';
								'value="" ';
								'>';
									'(please choose one)';
							'</option>';
							rows(-inlinename='sponsorships');
									'<option ';
										'value="' + column('UID') + '" ';
										if(var_defined('Sponsor_UID'));
												if($Sponsor_UID == column('UID'));
														' selected="selected" ';
												/if;
										else;
										/if;
										' >';
											column('Title');
									'</option>\n';
							/rows;
							'<option ';
								'label="None" ';
								'value="0000000000000" ';
								'>';
									'None';
							'</option>';
					'</select>';
		]
	<button type="submit" id="createpage" value="Assign">Assign</button>
	<button 
				name="-Nothing" 
				onclick="javascript:window.location=('[$path_to_node]'); return false;"
				>Back to Page</button>

	</form>
